//
//  CookingStyleTableViewCell.m
//  FoodList
//
//  Created by lanou on 16/4/7.
//  Copyright © 2016年 王金晶. All rights reserved.
//

#import "CookingStyleTableViewCell.h"
#import <UIImageView+WebCache.h>
@interface CookingStyleTableViewCell ()

@end

@implementation CookingStyleTableViewCell

-(void)setModel:(CookingStyleModel *)model
{
    _model = model;
    [_leftImageView sd_setImageWithURL:[NSURL URLWithString:model.imageUrl]];
    _nameLabel.text = model.name;
    _userName.text = model.nickname;
    _infoLabel.text = model.ingredients;
    _clickCountLabel.text = [NSString stringWithFormat:@"%@次点击",model.hitscount];
    _collectLabel.text = [NSString stringWithFormat:@"%@个收藏",model.collectCount];
    _commentLabel.text = [NSString stringWithFormat:@"%@条评论",model.commentCount];
}



- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
